/*
 * Constants.fx
 *
 * Created on 19-mei-2009, 12:22:03
 * This Class contains all the constants values, like the size of a thumbnail, of size of the screen, and so on
 */

package fotoboek;

import javafx.scene.image.Image;
import javafx.scene.paint.Color;

/**
 * @author r.mohammadi
 */

public class Constants {
//Application constants
public var SCENE_WIDTH : Integer = 240;
public var SCENE_HEIGHT : Integer = 320;
public def SCENE_COLOR : Color = Color.rgb(0xff,0xff,0xcc,1.0);
public def ALBUM_LOCATION : String = "http://www.logix-beats.nl/jfx/mobile/albums.xml";
public def CORRECTION_SPACE : Integer = 50;

// Dragging variables used for calculating max scrolling
public var USED_SPACE : Integer;
public var MAX_Y : Integer;
public var MEASURED_HEIGHT : Integer;
public var MAX_HEIGHT : Integer;

// Buttons constants
public def BUTTON_PADDING : Integer = 5;
//Progress bar constants
public def PROGRESS_TRANSLATE_X : Integer = 10;
public def PROGRESS_TRANSLATE_Y : Integer = 40;
//info constants
public def INFO_POS_X : Integer = 80;
public def INFO_POS_Y : Integer = 30;
//AlbumStack
public def ALBUM_STACK_SPACING : Integer = 2;
public def ALBUM_STACK_TRANSLATE_Y : Number = 27;
public def ALBUM_STACK_SCROLL : Integer = 10;

//PhotoStack
public def PHOTO_STACK_SPACING : Integer = 0;
public def PHOTO_STACK_TRANSLATE_Y : Integer = 30;
public def PHOTO_STACK_SCROLL : Integer = 30;

//Constants for AlbumBar
public def ALBUM_COVER_HEIGHT:Integer = 64/2;
public def ALBUM_COVER_WIDTH:Integer = 90/2;

//Constants for ThumbnailImageView
public def THUMB_HEIGHT:Integer = 80;
public def THUMB_WIDTH:Integer = 80;
public def MAX_COLS:Integer = 3;
public def PLACEHOLDER = Image{
    url:"{__DIR__}assets/stubs/art/img/placeholder.png"
    height:THUMB_HEIGHT
    width:THUMB_WIDTH
}
//Constants for the FullImageView
public var FULL_MAX_SIZE : Integer = 640/2;
public var FULL_MIN_SIZE : Integer = 427/2;

//Constants for the ButtonBar
public def BAR_SPACING_NORMAL : Integer = 17;
public def BAR_TRANSLATE_Y_NORMAL : Integer = 290;
public def RIGHT_BUTTON_TRANSLATE_X : Integer = 50;
public def RIGHT_BUTTON_TRANSLATE_Y : Integer = 210;
}
